 <option value="${"null"}"></option>
<g:each var="opt" in="${taskList}">
    <option value="${opt.id}">${opt.name}</option>
</g:each>